//钉钉消息推送
let urlDing = $this.$util.getAPI_URL();
let formDataDing=new FormData();
formDataDing.append("userIds",$this.model["systemSelect_1711439399614_qXQ72_ID"]);//执行人Id 字符串','拼接
formDataDing.append("projectName",$this.model["input_1718345101976_PBcTl"]);//项目名称
formDataDing.append("taskName",$this.model["input_1711439260720_6QPqX"]);//任务名称
formDataDing.append("distributor",$this.model["systemSelect_1711504973428_U0If2"]);//派发人
formDataDing.append("planDate",$this.model["rangePicker_1711439307444_Ftzhm"]);//任务计划时间
urlDing = urlDing.replace("api", "task/dingMessagePush");
$this.$http.post(urlDing,formDataDing).then((res) => {
    if(res.data.code===280){
        $this.$message.success("钉钉消息推送成功")
    }else {
        $this.$message.error("钉钉消息推送失败，请联系管理员!!!");
    }
})

console.log("派发人",$this.model["systemSelect_1755851190563_zYcrA"]);
//钉钉消息推送【字段不是必填项】
let urlDing = $this.$util.getAPI_URL();
let formDataDing=new FormData();
//userIds 固定参数
formDataDing.append("userIds",$this.model["systemSelect_1760433597035_E2cer_ID"]);//执行人Id 字符串','拼接
//formDataDing.append("projectName",$this.model["input_1718345101976_PBcTl"]);//项目名称
formDataDing.append("taskName",$this.model["textarea_1758790167865_jOcnJ"]);//任务名称
formDataDing.append("distributor",$this.model["systemSelect_1755851190563_zYcrA"]);//派发人【写重点】
formDataDing.append("planDate",$this.model["datepicker_1758790244757_9m676"]);//任务计划时间
urlDing = urlDing.replace("api", "task/dingMessagePush");
$this.$http.post(urlDing,formDataDing).then((res) => {
    if(res.data.code===280){
        $this.$message.success("钉钉消息推送成功")
    }else {
        $this.$message.errr("钉钉消息推送失败，请联系管理员!!!");
    }
})

       //售后服务派工单-钉钉消息推送
       let urlDing = $this.$util.getAPI_URL();
       let formDataDing=new FormData();
       formDataDing.append("userIds",bodyData["body_1758861034886_pcNng_ID"]);//执行人Id 字符串','拼接
       formDataDing.append("projectName",headData.input_1754901363556_BHrYS);//项目名称
       formDataDing.append("taskName",bodyData["body_1758860811664_x35Q4"]);//任务名称
       formDataDing.append("distributor",headData.create_user_name);//派发人
       formDataDing.append("planDate",headData.datepicker_1753886507480_96hIN);//任务计划时间
       urlDing = urlDing.replace("api", "task/dingMessagePush");
       await $this.$http.post(urlDing,formDataDing).then((res) => {
           if(res.data.code===280){
               $this.$message.success("钉钉消息推送成功")
           }else {
               $this.$message.errr("系统错误，请联系管理员!!!");
           }
       })
